import { request } from '@/utils/http'
// import qs from 'qs'

export function getScreenNumApi (params) {
  return request({
    url: '/api/hiddenDanger/getScreenNum',
    method: 'GET',
    params
  })
}

export function getVideoDetectionAlarmListApi (params) {
  return request({
    url: '/api/videoDetection/getVideoDetectionAlarmList',
    method: 'GET',
    params
  })
}
export function getSensingDetectionApi (params) {
  return request({
    url: '/api/sensingDetection/getSensingDetection',
    method: 'GET',
    params
  })
}

export function getJobNowApi (params) {
  return request({
    url: '/api/jobRecord/getJobNow',
    method: 'GET',
    params
  })
}

export function vehiclePageApi (params) {
  return request({
    url: '/api/carReport/page',
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: params
  })
}

export function hiddenTroublePageApi (params) {
  return request({
    url: '/api/hiddenDanger/page',
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: params
  })
}

export function videoDetectionPageApi (params) {
  return request({
    url: '/api/videoDetection/page',
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: params
  })
}

export function sensingDetectionPageApi (params) {
  return request({
    url: '/api/sensingDetection/page',
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: params
  })
}

export function jobRecordPageApi (params) {
  return request({
    url: '/api/jobRecord/page',
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: params
  })
}

export function liveUrlApi (params) {
  return request({
    url: '/api/videoEquipment/liveUrl',
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: params
  })
}

export function loginApi (params) {
  return request({
    url: '/api/user/login',
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: params
  })
}

export function ysPageListApi (params) {
  return request({
    url: '/api/videoEquipment/ysPageList',
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: params
  })
}

export function fileUploadPageApi (params) {
  return request({
    url: '/api/fileDisc/page',
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: params
  })
}

export function specialPageApi (params) {
  return request({
    url: '/api/specialHomeworkCertificate/pageList',
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: params
  })
}

export function firePageApi (params) {
  return request({
    url: '/api/fireFightingEquipmentCheck/pageList',
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: params
  })
}